package com.hundsun.cprs.yyt.service.report.dao;

import com.hundsun.cprs.yyt.service.report.domain.DaliyClinchSum;
import com.hundsun.cprs.yyt.service.report.domain.query.DaliyClinchSumQuery;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface DaliyClinchSumDao {
    int deleteByPrimaryKey(Long id);

    int insert(DaliyClinchSum record);

    int insertSelective(DaliyClinchSum record);

    DaliyClinchSum selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DaliyClinchSum record);

    int updateByPrimaryKey(DaliyClinchSum record);

    List<DaliyClinchSum> getRecentRecord(@Param("areaCode") String areaCode, @Param("time") int time);

    List<DaliyClinchSum> queryByPage(DaliyClinchSumQuery query);

    /**
     * 获取区域日成交统计信息
     * @param areaCode
     * @param startTime
     * @param endTime
     *
     * */
    public DaliyClinchSum getDaliyClinchSumFromArea(@Param("areaCode") String areaCode, @Param("startTime")Date startTime, @Param("endTime")Date endTime);

}